package dao;

import entity.Pet;
import org.springframework.stereotype.Component;
@Component("petDaoMySQL")
public class PetDaoMySQLImpl implements PetDao {
    @Override
    public int insert(Pet pet) {
        //此处模拟插入数据,简化操作仅为说明问题
        System.out.println("将宠物“"+pet.getName()+"”插入到MySQL数据库");
        return 1;
    }
}
